package com.atstudying.mall.mallauthserver.feign;

import com.atstudying.common.utils.R;
import com.atstudying.mall.mallauthserver.vo.SocicalUser;
import com.atstudying.mall.mallauthserver.vo.UserLoginVo;
import com.atstudying.mall.mallauthserver.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Mr.zhneg
 * @create 2020-11-12-23:34
 */
@FeignClient("mall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo memberLoginVo);

    @PostMapping("/member/member/oauth2/login")
    public R oauth2login(@RequestBody SocicalUser socicalUser);
}
